﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Messenger.DataAccess
{
    /// <summary>
    /// Db Exception
    /// Created by: Dinh Quoc Vuong
    /// Created date: Sep 30 2011
    /// </summary>
    public class DBException : Exception
    {
        /// <summary>
        /// Init DbException
        /// </summary>
        /// <param name="message"></param>
        public DBException(string message)
            : base(message)
        {

        }
        /// <summary>
        /// Message number
        /// </summary>
        public int Number { get; set; }
        /// <summary>
        /// Exception type
        /// </summary>
        public DBExceptionType ExceptionType { get; set; }
    }
}
